package approve.model;

import java.io.Serializable;

import approve.dao.ListLabelDAO;

import model.pojo.Employee;

public class ListLabel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String id_emp;
	private String name_lable;
	private Employee emp;
	private int number;
	public ListLabel(){}
	public ListLabel(int id, String name){
		this.id=id;
		this.name_lable=name;
	}
	public ListLabel(int id, String name,int soluong){
		this.id=id;
		this.name_lable=name;
		this.number=soluong;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getId_emp() {
		return id_emp;
	}
	public void setId_emp(String id_emp) {
		this.id_emp = id_emp;
	}
	public String getName_lable() {
		return name_lable;
	}
	public void setName_lable(String name_lable) {
		this.name_lable = name_lable;
	}
	public Employee getEmp() {
		return emp;
	}
	public void setEmp(Employee emp) {
		this.emp = emp;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getNumber(String db,String idem) {
		this.number=ListLabelDAO.getAllDocByLabel(db,idem, getId());
		return this.number;
	}
	
}
